const Main=require('yg-Main');
module.exports={
    GameServerManager:null,
    init(){
        if(!wx.getGameServerManager) return;
        this.GameServerManager=wx.getGameServerManager();
        Main.UI.showLoadding({txt:'正在登陆游戏服务器'})
        this.GameServerManager.login().then(function(){
            cc.log('游戏服务登陆成功');
            Main.UI.hideLoadding();
        });
    },
}